import me.tuyou.A;
import me.tuyou.MyBean;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.util.Assert;

/**
 * @Description
 * @Author tuyou_cd
 * @Date 2020/5/21 15:20
 */
public class App {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext("me.tuyou");

        MyBean bean = applicationContext.getBean(MyBean.class);
        Assert.notNull(bean);

        A a = applicationContext.getBean(A.class);
        Assert.notNull(a);
    }
}
